package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;
import org.jsola.hr.vo.FormGroupFieldVO;

import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.TreatmentDisposeEventExample.E_COMPANY_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_COMPANY_NAME;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_CURRENT_WORKFLOW;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_EMP_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_EMP_ID_CARD;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_EMP_NAME;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_EVENT_TYPE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_FINISH_DATE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_IS_FINISH;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_IS_PRECEDENCE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_TAKE_ORDERS_DATE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_TAKE_ORDERS_USER_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_TAKE_ORDERS_USER_NAME;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_TEMPLATE_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.E_WORK_CITY;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_COMPANY_NAME_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_CURRENT_WORKFLOW_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EMP_ID_CARD_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EMP_ID_CARD_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EMP_ID_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EMP_NAME_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EMP_NAME_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EVENT_TYPE_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_EVENT_TYPE_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_IS_FINISH_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_TAKE_ORDERS_DATE_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_TAKE_ORDERS_USER_ID_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_TAKE_ORDERS_USER_ID_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_TAKE_ORDERS_USER_NAME_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_TAKE_ORDERS_USER_NAME_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_TEMPLATE_ID_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_TEMPLATE_ID_NOT_NULL;
import static org.jsola.hr.example.TreatmentDisposeEventExample.M_WORK_CITY_MAX;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_COMPANY_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_COMPANY_NAME;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_CURRENT_WORKFLOW;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_EMP_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_EMP_ID_CARD;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_EMP_NAME;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_EVENT_TYPE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_FINISH_DATE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_IS_FINISH;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_IS_PRECEDENCE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_TAKE_ORDERS_DATE;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_TAKE_ORDERS_USER_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_TAKE_ORDERS_USER_NAME;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_TEMPLATE_ID;
import static org.jsola.hr.example.TreatmentDisposeEventExample.N_WORK_CITY;

/**
 * 待遇处理事件
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【待遇处理事件】的参数")
@Data
public class TreatmentDisposeEventAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_TEMPLATE_ID, example = E_TEMPLATE_ID, required = true)
    @NotNull(message = M_TEMPLATE_ID_NOT_NULL)
    @Length(max = 32, message = M_TEMPLATE_ID_MAX)
    private String templateId;

    @ApiModelProperty(notes = N_EVENT_TYPE, example = E_EVENT_TYPE, required = true)
    @NotNull(message = M_EVENT_TYPE_NOT_NULL)
    @Length(max = 32, message = M_EVENT_TYPE_MAX)
    private String eventType;

    @ApiModelProperty(notes = N_CURRENT_WORKFLOW, example = E_CURRENT_WORKFLOW)
    @Length(max = 50, message = M_CURRENT_WORKFLOW_MAX)
    private String currentWorkflow;

    @ApiModelProperty(notes = N_TAKE_ORDERS_USER_ID, example = E_TAKE_ORDERS_USER_ID, required = true)
    @NotNull(message = M_TAKE_ORDERS_USER_ID_NOT_NULL)
    @Length(max = 32, message = M_TAKE_ORDERS_USER_ID_MAX)
    private String takeOrdersUserId;

    @ApiModelProperty(notes = N_TAKE_ORDERS_USER_NAME, example = E_TAKE_ORDERS_USER_NAME, required = true)
    @NotNull(message = M_TAKE_ORDERS_USER_NAME_NOT_NULL)
    @Length(max = 50, message = M_TAKE_ORDERS_USER_NAME_MAX)
    private String takeOrdersUserName;

    @ApiModelProperty(notes = N_TAKE_ORDERS_DATE, example = E_TAKE_ORDERS_DATE, required = true)
    @NotNull(message = M_TAKE_ORDERS_DATE_NOT_NULL)
    private Date takeOrdersDate;

    @ApiModelProperty(notes = N_IS_PRECEDENCE, example = E_IS_PRECEDENCE)
    private Boolean isPrecedence;

    @ApiModelProperty(notes = N_IS_FINISH, example = E_IS_FINISH, required = true)
    private Boolean isFinish;

    @ApiModelProperty(notes = N_FINISH_DATE, example = E_FINISH_DATE)
    private Date finishDate;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID, required = true)
    @NotNull(message = M_EMP_ID_NOT_NULL)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_EMP_NAME, example = E_EMP_NAME, required = true)
    @NotNull(message = M_EMP_NAME_NOT_NULL)
    @Length(max = 50, message = M_EMP_NAME_MAX)
    private String empName;

    @ApiModelProperty(notes = N_EMP_ID_CARD, example = E_EMP_ID_CARD, required = true)
    @NotNull(message = M_EMP_ID_CARD_NOT_NULL)
    @Length(max = 20, message = M_EMP_ID_CARD_MAX)
    private String empIdCard;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME, required = true)
    @NotNull(message = M_COMPANY_NAME_NOT_NULL)
    @Length(max = 100, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_WORK_CITY, example = E_WORK_CITY, required = true)
    @Length(max = 50, message = M_WORK_CITY_MAX)
    private String workCity;

    @ApiModelProperty(notes = "表单字段")
    List<FormGroupFieldValueAddDTO> fieldValueList;
}

